<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     
</body><script>

    // set 数据的无重复有序集合
        // 不允许重复数据

    //map 数据的值值对无序集合

//     const s= new Set([1,2,3,4,5,6,1,23,5,])
//     console.log(s.size)
//     console.log(s)
//     for(let i of s){
//         console.log(i)
//     }
//     let arr1 = [1,2,1,2,3,4,5,6,78,2,3,45,6]
//   let arr2= [...new Set(arr1)]
//   console.log(arr1)
//   console.log(arr2)
  
//   let arr3 = [1,2,1,2,3,4,5,6,78,2,3,45,6]
//   const norepeat = arr=>[...new Set(arr)]
//   console.log(norepeat(arr3))

  
  
</script>
</html>